<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href='__PUBLIC__/bs/css/bootstrap.min.css'>
	<link rel="stylesheet" href='../Public/css/index.css'>
	<script src="__PUBLIC__/bs/js/jquery.js"></script>
	<script src="__PUBLIC__/bs/js/bootstrap.min.js"></script>
	<script src="../Public/js/index.js"></script>
</head>
<body>
	<div class="container">
		<div class="admin">
			<div class="header">
				<h1>后台管理系统</h1>
				<ul class="list-inline">
					<li><a href="">首页</a></li>
					<li><a href="">退出</a></li>
					<li><a href="">帮助</a></li>
				</ul>
			</div>
			<div class="row">
				<div class="left col-md-3">
					<div class="list-group User">
					  <a href="javascript:" class="list-group-item active">
					    用户管理
					  </a>
					  <a href="<?php echo U('User/index');?>" class="list-group-item">查看用户</a>
					  <a href="<?php echo U('User/add');?>" class="list-group-item">添加用户</a>
					</div>
					<div class="list-group Class">
					  <a href="javascript:" class="list-group-item active">
					    分类管理
					  </a>
					  <a href="<?php echo U('Class/index');?>" class="list-group-item">查看分类</a>
					  <a href="<?php echo U('Class/add');?>" class="list-group-item">添加分类</a>
					</div>
					<div class="list-group Brand">
					  <a href="javascript:" class="list-group-item active">
					    品牌管理
					  </a>
					  <a href="<?php echo U('Brand/index');?>" class="list-group-item">查看品牌</a>
					  <a href="<?php echo U('Brand/add');?>" class="list-group-item">添加品牌</a>
					</div>
					<div class="list-group Shop">
					  <a href="javascript:" class="list-group-item active">
					    商品管理
					  </a>
					  <a href="<?php echo U('Shop/index');?>" class="list-group-item">查看商品</a>
					  <a href="<?php echo U('Shop/add');?>" class="list-group-item">添加商品</a>
					</div>
					<div class="list-group Comment">
					  <a href="javascript:" class="list-group-item active">
					    评论管理
					  </a>
					  <a href="<?php echo U('Comment/index');?>" class="list-group-item">查看评论</a>
					</div>
					<div class="list-group Indent" >
					  <a href="javascript:" class="list-group-item active">
					    订单管理
					  </a>
					  <a href="<?php echo U('Indent/index');?>" class="list-group-item">查看订单</a>
					</div>
					<div class="list-group Status" >
					  <a href="javascript:" class="list-group-item active">
					    订单状态
					  </a>
					  <a href="<?php echo U('Status/index');?>" class="list-group-item">查看订单状态</a>
					  <a href="<?php echo U('Status/add');?>" class="list-group-item">添加订单状态</a>
					</div>
					<div class="list-group Advert" >
					  <a href="javascript:" class="list-group-item active">
					    广告管理
					  </a>
					  <a href="<?php echo U('Advert/index');?>" class="list-group-item">查看广告</a>
					  <a href="<?php echo U('Advert/add');?>" class="list-group-item">添加广告</a>
					</div>
					<div class="list-group System" >
					  <a href="javascript:" class="list-group-item active">
					    系统管理
					  </a>
					  <a href="<?php echo U('System/index');?>" class="list-group-item">修改密码</a>
					</div>
				</div>
				
					<div class="right col-md-7 ">
						<img src="../Public/image/hy.jpg"  style="width:850px;" alt="">
					</div>
				
			</div>
		</div>
	</div>
	
</body>
<script>
$(function(){
	/////////////首页////////////
	// 根据模块名使对应下拉列表显示
	cls="<?php echo get_url_module();?>";//获取模块名方法，Admin\common\common.php中自定义方法
	$('.'+cls).children().show();
	///////////首页结束//////////
	
	// 删除
	$('.del').click(function(){
		id=$(this).attr('idx');
		obj=$(this);
		$.get("<?php echo U('delete');?>",{'id':id},function(r){
			// 状态是1证明数据成功，显示删除成功，隐藏相应数据
			if(r.status==1){
				alert(r.info);
				obj.parent().parent().hide(200);
			}else{
				// 弹出管理员不可删除
				alert(r.info);
			}
		},'json');
	})


	
})
</script>
</html>